package com.heima.apis.article.fallback;

import com.heima.apis.article.IArticleClient;
import com.heima.common.dtos.ResponseResult;
import com.heima.common.enums.AppHttpCodeEnum;
import com.heima.model.article.dtos.ArticleDto;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * feign失败配置
 */
public class IArticleClientFallback implements IArticleClient {
    @Override
    public ResponseResult<Long> saveArticle(@RequestBody ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取数据失败");
    }
}
